package com.yf.entity;


import lombok.Setter;
import lombok.Getter;
import java.io.Serializable;
import java.util.Date;

import java.math.BigDecimal;

/**
 * 签到实体
 * 表名 sign_in
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Wed Dec 12 14:32:17 CST 2018
 */
@Setter
@Getter
public class SignInEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    //ID
    private Long id;
    //user
    private Long user;
    //最后一次签到日期
    private Date lastTime;
    //连续签到天数
    private Integer continuousDays;

    //今天是否签到
    private boolean sign;

    public SignInEntity(){

    }

    public SignInEntity(Long user, Integer continuousDays) {
        this.user = user;
        this.continuousDays = continuousDays;
}

    public SignInEntity(Long user, Integer continuousDays , Date lastTime) {
        this.user = user;
        this.continuousDays = continuousDays;
        this.lastTime = lastTime;
    }

    @Override
    public String toString() {
        return "SignInEntity{" +
                "id=" + id +
                ", user=" + user +
                ", lastTime=" + lastTime +
                ", continuousDays=" + continuousDays +
                ", sign=" + sign +
                '}';
    }
}
